//
//  expressTableViewCell.m
//  jianpai
//
//  Created by yrapp on 16/1/15.
//  Copyright © 2016年 yrapp. All rights reserved.
//

#import "expressTableViewCell.h"

@implementation expressTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
 
//        
//                UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, 5, kWidth, 50)];
//                backView.backgroundColor = [UIColor whiteColor];
//                backView.layer.shadowColor = [UIColor grayColor].CGColor;
//                backView.layer.shadowOffset = CGSizeMake(0, 0);
//                backView.layer.shadowOpacity = 1;
//                [self.contentView addSubview:backView];
        
        UIImageView *backImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kWidth, 50)];
        backImageView.image = [UIImage imageNamed:@"brand_item_background"];
        [self.contentView addSubview:backImageView];
        
        self.payAndExpress = [[UILabel alloc] initWithFrame:CGRectMake(10, 15, 50, 20)];
        self.payAndExpress.text = @"配送方式";
        [self.payAndExpress sizeToFit];
        self.payAndExpress.textColor = [UIColor grayColor];
        [self.contentView addSubview:self.payAndExpress];
        
        
        _expressLabel = [[UILabel alloc] initWithFrame:CGRectMake(kWidth - 125, 15, 10, 20)];
        _expressLabel.font = [UIFont systemFontOfSize:14.0];
        _expressLabel.text = @"快递 10.00元";
        [_expressLabel sizeToFit];
        _expressLabel.frame = CGRectMake(kWidth - _expressLabel.frame.size.width - 30, 15, _expressLabel.frame.size.width, 20);
        [self.contentView addSubview:_expressLabel];
        
        
    }
    
    return self;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
